<?php 
defined('IN_PHPCMS') or exit('Access Denied');
include admin_tpl('header');
?>
<body>
<form action="?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>&modelid=<?=$modelid?>" method="post" name="myform" enctype="multipart/form-data">
<table cellpadding="2" cellspacing="1" class="table_form">
  <caption>导入模型</caption>
	<tr> 
      <th width="15%"><strong>模型名称：</strong></th>
      <td><?=form::text('modelname', 'modelname', '', 'text', 30, '', 'require="true" datatype="limit|ajax" url="?mod=member&file=member_model&action=checkmodel" min="3" max="20" msg="3到20个字符，不得包含非法字符！|" ')?><font color="red">*</font></td>
    </tr>
	<tr> 
      <th><strong>模型描述：</strong></th>
      <td><?=form::textarea('description', 'description', '', 4, 40)?></td>
    </tr>
	<tr>
	  <th><strong>表名：</strong></th>
	  <td><?=DB_PRE?>member_<?=form::text('tablename', 'tablename', '', 'text', 30, '', 'require="true" datatype="limit|ajax" url="?mod=member&file=member_model&action=checktable" min="1" max="30" msg="表名必须为大于1且小于30的字节数,不得包含非法字符!|"')?><font color="red">*</font></td>
	</tr>
	<tr>
	   <th><strong>上传模型：</strong></th>
	   <td><?=form::text('modelfile', 'modelfile', '', 'file', 12)?></td>
	</tr>
    <tr>
	  <td></td>
      <td>
      <div class="button_box">
	  <input type="hidden" name="forward" value="?mod=<?=$mod?>&file=<?=$file?>&action=manage"> 
	  <input type="submit" name="dosubmit" value=" 确定 "> 
      &nbsp; <input type="reset" name="reset" value=" 清除 ">
      </div>
	  </td>
    </tr>
</table>
</form>
</body>
</html>
<script LANGUAGE="javascript">
<!--
$().ready(function() {
	  $('form').checkForm(1);
	});
//-->
</script>